def func2():
    print ("pack2.myModule2.func2()")

if __name__=='__main__':
    print('myModule2作为主程序运行')
else:
    print('myModule2被另外一个模块调用')